const Router = require('koa-router');
const { verifyAuth } = require('../middleware/auth.middleware');
const { create, remove, update, list } = require('../controller/indiv.controller');

const indivRouter = new Router({ prefix: '/indiv' });

// 添加个人简介
indivRouter.post("/", verifyAuth, create);
// 删除个人简介
indivRouter.delete("/", verifyAuth, remove);
// 修改个人简介
indivRouter.patch("/", verifyAuth, update);
// 获取个人简介
indivRouter.get("/list", list);

module.exports = indivRouter;
